package Shop.service;


import Shop.damain.Users;
import Shop.dao.UserDaoImpl;
import Shop.tools.DBHelper;

import java.util.List;
import java.util.Map;

/**
 * Created by BadHuge on 2020/9/11.
 */
public class UserService {
    UserDaoImpl dao = new UserDaoImpl();

    public  Boolean register(String name,String pwd){
       /* int i;
        String sql = "insert into users (username,userpwd,gendar,uimage,age,address) values ('"+name+"','"+pwd+"',0,11,1,11)";
        i = DBHelper.executeUpdata(sql);*/
       return dao.register(name,pwd);
    }



    public Users login(String username,String userpwd){
       return dao.login(username,userpwd);
    }
}
